package com.fs.service;

import com.fs.pojo.SysAdminMenus;
import com.fs.vo.SysResult;
import com.fs.vo.SysResult;

import java.util.List;

public interface SysAdminMenuService {

    SysResult getAll();

    SysResult menuSelect();

    SysAdminMenus getById(Integer parentId);

    void save(SysAdminMenus menu);

    void updateById(SysAdminMenus menu);
    /**
     * 根据父菜单，查询子菜单
     * @param parentId 父菜单ID
     * @param menuIdList  用户菜单ID
     */
    List<SysAdminMenus> queryListParentId(Long parentId, List<Long> menuIdList);

    /**
     * 根据父菜单，查询子菜单
     * @param parentId 父菜单ID
     */
    List<SysAdminMenus> queryListParentId(Long parentId);

    void delete(long menuId);
}
